import { createApp } from "vue";
import { createPinia } from "pinia";

import App from "./App.vue";
import router from "./router";
import VueWechatTitle from "vue-wechat-title";
import vxeTree from 'vxe-tree';

// 全局
import {
  Dialog,
  Icon,
  Field,
  Overlay,
  Image,
  Search,
  Empty,
  Loading,
  Checkbox,
  CheckboxGroup,
  Tab,
  Tabs,
  Switch,
  Popup,
  Popover,
  RadioGroup,
  Radio,
  Toast,
  Button,
  DatetimePicker,
  Calendar,
  Cell,
  Uploader
} from "vant";

import "amfe-flexible/index.js";
import "./assets/styles/index.scss";
import './assets/icon/iconfont.css'
import 'vxe-tree/dist/index.css';

import "./permission";

const app = createApp(App);

app.use(createPinia());
app.use(router);
app.use(Dialog);
app.use(Icon);
app.use(VueWechatTitle);
app.use(Field);
app.use(Overlay);
app.use(Image);
app.use(Search);
app.use(Empty);
app.use(Loading);
app.use(Checkbox);
app.use(Tab);
app.use(Tabs);
app.use(Switch);
app.use(Popup);
app.use(Popover);
app.use(RadioGroup);
app.use(Radio);
app.use(Toast);
app.use(Button);
app.use(CheckboxGroup);
app.use(DatetimePicker);
app.use(Calendar);
app.use(Cell);
app.use(Uploader);

app.use(vxeTree);

app.mount("#app");
